package com.jqq.mybatis.mapper;

import com.jqq.mybatis.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author 姬倩倩
 * @version 1.0
 */
public interface UserMapper {
    //根据用户名查询用户信息
    User getUserByUsername(String username);

    //验证登录
    User checkLogin(String username, String password);

    User checkLoginByMap(Map<String, Object> map);

    User checkLoginByParam(@Param("username") String username, @Param("password") String password);

    //添加用户
    void insertUser(User user);

}
